<?php
namespace services;
/**
* 支付接口
*/
interface PaymentInterface
{
	public function pay($attributes);
    /**
     * 查询订单
     * @param  [type] $order_no [description]
     * @param  string $type     [description]
     * @return [type]           [description]
     */
    public function queryOrder($order_no, $type);
    /**
     * 撤销订单
     * @param  [type] $order_no 订单号
     * @param  string $type     out_trade_no 内部订单号 | transaction_id 微信订单号
     * @return [type]           [description]
     */
    public function reverseOrder($order_no, $type);
    /**
     * 关闭订单
     * @param  [type] $order_no [description]
     * @return [type]           [description]
     */
    public function closeOrder($order_no);
    /**
     * 下载对账单
     * @param  [type] $date [description]
     * @param  string $type [description]
     * ALL：返回当日所有订单信息（默认值）
     * SUCCESS：返回当日成功支付的订单
     * REFUND：返回当日退款订单
     * REVOKED：已撤销的订单
     * @return [type]       [description]
     */     
    public function downloadBill($date, $type);
    /**
     * 退款
     * @param  [type] $out_trade_no [description]
     * @param  [type] $total_fee    [description]
     * @param  [type] $refund_fee   [description]
     * @return [type]               [description]
     */
    public function refund($out_trade_no, $total_fee, $refund_fee);
    /**
     * 支付结果通知
     * @return [type] [description]
     */
    public function notify();
}